﻿for(var i = 0; i < 100; i++) { var scriptId = 'u' + i; window[scriptId] = document.getElementById(scriptId); }

$axure.eventManager.pageLoad(
function (e) {

if (true) {

SetWidgetFormText('u6', '' + (GetGlobalVariableValue('Day')) + '/' + (GetGlobalVariableValue('Month')) + '/' + (GetGlobalVariableValue('Year')) + '');

	var obj1 = document.getElementById("u64");
    obj1.disabled = true;

	var obj1 = document.getElementById("u63");
    obj1.disabled = true;

	var obj1 = document.getElementById("u62");
    obj1.disabled = true;

	var obj1 = document.getElementById("u65");
    obj1.disabled = true;

	var obj1 = document.getElementById("u87");
    obj1.disabled = true;

	var obj1 = document.getElementById("u88");
    obj1.disabled = true;

	var obj1 = document.getElementById("u89");
    obj1.disabled = true;

}

});
gv_vAlignTable['u16'] = 'top';gv_vAlignTable['u46'] = 'top';
u93.style.cursor = 'pointer';
$axure.eventManager.click('u93', function(e) {

if (true) {

	self.location.href=$axure.globalVariableProvider.getLinkUrl('tracuukh.html');

}
});
gv_vAlignTable['u38'] = 'top';gv_vAlignTable['u32'] = 'top';
u62.style.cursor = 'pointer';
$axure.eventManager.click('u62', function(e) {

if (true) {

	SetPanelVisibility('u94','','none',500);

}
});

u87.style.cursor = 'pointer';
$axure.eventManager.click('u87', function(e) {

if ((IsValueNumeric(GetWidgetText('u87'))) && ((GetWidgetText('u27')) == ('1'))) {

SetGlobalVariableValue('SoLuong', GetWidgetText('u87'));

SetGlobalVariableValue('DonGia', GetWidgetText('u37'));

SetWidgetRichText('u42', '<p style="text-align:center;"><span style="font-family:Arial;font-size:13px;font-weight:normal;font-style:normal;text-decoration:none;color:#333333;">' + (GetGlobalVariableValue('SoLuong') * GetGlobalVariableValue('DonGia')) + '</span></p>');

SetGlobalVariableValue('ThanhTien', GetWidgetText('u41'));

SetWidgetFormText('u59', '' + (GetGlobalVariableValue('ThanhTien')) + '');

	var obj1 = document.getElementById("u62");
    obj1.disabled = false;

	var obj1 = document.getElementById("u63");
    obj1.disabled = false;

	var obj1 = document.getElementById("u64");
    obj1.disabled = false;

}
});
gv_vAlignTable['u7'] = 'top';gv_vAlignTable['u84'] = 'top';gv_vAlignTable['u30'] = 'top';gv_vAlignTable['u8'] = 'top';gv_vAlignTable['u60'] = 'top';
u89.style.cursor = 'pointer';
$axure.eventManager.click('u89', function(e) {

if ((GetGlobalVariableValue('SoLuong')) != ('')) {

SetGlobalVariableValue('SoLuong1', GetWidgetText('u89'));

SetGlobalVariableValue('DonGia1', GetWidgetText('u53'));

SetWidgetRichText('u58', '<p style="text-align:center;"><span style="font-family:Arial;font-size:13px;font-weight:normal;font-style:normal;text-decoration:none;color:#333333;">' + (GetGlobalVariableValue('SoLuong1') * GetGlobalVariableValue('DonGia1')) + '</span></p>');

SetGlobalVariableValue('ThanhTien1', GetWidgetText('u57'));

SetGlobalVariableValue('ThanhTien', GetWidgetText('u41'));

SetWidgetFormText('u59', '' + (GetNum(GetGlobalVariableValue('ThanhTien1')) + GetNum(GetGlobalVariableValue('ThanhTien'))) + '');

}
});
gv_vAlignTable['u34'] = 'top';
u64.style.cursor = 'pointer';
$axure.eventManager.click('u64', function(e) {

if ((GetWidgetText('u43')) == ('2')) {

SetWidgetRichText('u44', '<p style="text-align:center;"><span style="font-family:Arial;font-size:13px;font-weight:normal;font-style:normal;text-decoration:none;color:#333333;text-decoration:none;">&nbsp;</span></p>');

SetWidgetRichText('u46', '<p style="text-align:center;"><span style="font-family:Arial;font-size:13px;font-weight:normal;font-style:normal;text-decoration:none;color:#333333;text-decoration:none;">&nbsp;</span></p>');

SetWidgetRichText('u48', '<p style="text-align:center;"><span style="font-family:Arial;font-size:13px;font-weight:normal;font-style:normal;text-decoration:none;color:#333333;text-decoration:none;">&nbsp;</span></p>');

SetWidgetRichText('u52', '<p style="text-align:center;"><span style="font-family:Arial;font-size:13px;font-weight:normal;font-style:normal;text-decoration:none;color:#333333;text-decoration:none;">&nbsp;</span></p>');

SetWidgetRichText('u54', '<p style="text-align:center;"><span style="font-family:Arial;font-size:13px;font-weight:normal;font-style:normal;text-decoration:none;color:#333333;text-decoration:none;">&nbsp;</span></p>');

SetWidgetFormText('u89', '');

SetWidgetRichText('u58', '<p style="text-align:center;"><span style="font-family:Arial;font-size:13px;font-weight:normal;font-style:normal;text-decoration:none;color:#333333;text-decoration:none;">&nbsp;</span></p>');

SetWidgetFormText('u59', '' + (GetGlobalVariableValue('SoLuong') * GetGlobalVariableValue('DonGia')) + '');

	var obj1 = document.getElementById("u88");
    obj1.disabled = true;

	var obj1 = document.getElementById("u89");
    obj1.disabled = true;

}
else
if ((GetWidgetText('u27')) == ('1')) {

    self.location.href="resources/reload.html#" + encodeURI($axure.globalVariableProvider.getLinkUrl($axure.pageData.url));

}
});
gv_vAlignTable['u79'] = 'top';gv_vAlignTable['u81'] = 'top';
u97.style.cursor = 'pointer';
$axure.eventManager.click('u97', function(e) {

if (true) {

	SetPanelVisibility('u94','hidden','none',500);

	SetPanelVisibility('u90','','none',500);

}
});
gv_vAlignTable['u85'] = 'top';
u71.style.cursor = 'pointer';
$axure.eventManager.click('u71', function(e) {

if (true) {

    self.location.href="resources/reload.html#" + encodeURI($axure.globalVariableProvider.getLinkUrl($axure.pageData.url));

}
});
gv_vAlignTable['u36'] = 'top';
u75.style.cursor = 'pointer';
$axure.eventManager.click('u75', function(e) {

if (true) {

	SetPanelVisibility('u72','hidden','none',500);

}
});
gv_vAlignTable['u58'] = 'top';gv_vAlignTable['u40'] = 'top';gv_vAlignTable['u2'] = 'top';gv_vAlignTable['u92'] = 'center';gv_vAlignTable['u83'] = 'top';gv_vAlignTable['u22'] = 'top';gv_vAlignTable['u52'] = 'top';gv_vAlignTable['u0'] = 'top';gv_vAlignTable['u20'] = 'top';gv_vAlignTable['u50'] = 'top';gv_vAlignTable['u28'] = 'top';gv_vAlignTable['u24'] = 'top';gv_vAlignTable['u54'] = 'top';document.getElementById('u78_img').tabIndex = 0;

u78.style.cursor = 'pointer';
$axure.eventManager.click('u78', u78Click);
InsertAfterBegin(document.body, "<div class='intcases' id='u78LinksClick'></div>")
var u78LinksClick = document.getElementById('u78LinksClick');
function u78Click(e) 
{
windowEvent = e;


	ToggleLinks(e, 'u78LinksClick');
}

InsertBeforeEnd(u78LinksClick, "<div class='intcaselink' onmouseout='SuppressBubble(event)' onclick='u78Clickuf02ee6c0e2ed4db593e9d0bb4d9f084a(event)'>Sao,Lưu</div>");
function u78Clickuf02ee6c0e2ed4db593e9d0bb4d9f084a(e)
{

	ToggleLinks(e, 'u78LinksClick');
}

InsertBeforeEnd(u78LinksClick, "<div class='intcaselink' onmouseout='SuppressBubble(event)' onclick='u78Clickuf6f99147eddd4031aa3cb82b69f1a401(event)'>Phục Hồi</div>");
function u78Clickuf6f99147eddd4031aa3cb82b69f1a401(e)
{

	ToggleLinks(e, 'u78LinksClick');
}
gv_vAlignTable['u4'] = 'top';gv_vAlignTable['u96'] = 'center';
u61.style.cursor = 'pointer';
$axure.eventManager.click('u61', function(e) {

if (true) {

	self.location.href='Home.html';

}
});
gv_vAlignTable['u26'] = 'top';
u65.style.cursor = 'pointer';
$axure.eventManager.click('u65', function(e) {

if ((GetSelectedOption('u65')) == ('SP01')) {

SetWidgetRichText('u36', '<p style="text-align:center;"><span style="font-family:Arial;font-size:13px;font-weight:normal;font-style:normal;text-decoration:none;color:#333333;">Liquid Chlorophyll 2</span></p>');

SetWidgetRichText('u38', '<p style="text-align:center;"><span style="font-family:Arial;font-size:13px;font-weight:normal;font-style:normal;text-decoration:none;color:#333333;">50000</span></p>');

}
else
if ((GetSelectedOption('u65')) == ('SP02')) {

SetWidgetRichText('u36', '<p style="text-align:center;"><span style="font-family:Arial;font-size:13px;font-weight:normal;font-style:normal;text-decoration:none;color:#333333;">Liquid Chlorophyll 32</span></p>');

SetWidgetRichText('u38', '<p style="text-align:center;"><span style="font-family:Arial;font-size:13px;font-weight:normal;font-style:normal;text-decoration:none;color:#333333;">125000</span></p>');

}
});
gv_vAlignTable['u56'] = 'top';document.getElementById('u82_img').tabIndex = 0;

u82.style.cursor = 'pointer';
$axure.eventManager.click('u82', u82Click);
InsertAfterBegin(document.body, "<div class='intcases' id='u82LinksClick'></div>")
var u82LinksClick = document.getElementById('u82LinksClick');
function u82Click(e) 
{
windowEvent = e;


	ToggleLinks(e, 'u82LinksClick');
}

InsertBeforeEnd(u82LinksClick, "<div class='intcaselink' onmouseout='SuppressBubble(event)' onclick='u82Clicku24ff2be4862c4f81971597aa33b2b1c1(event)'>Báo Cáo Thu Chi</div>");
function u82Clicku24ff2be4862c4f81971597aa33b2b1c1(e)
{

	self.location.href=$axure.globalVariableProvider.getLinkUrl('bao_cao_thu_chi.html');

	ToggleLinks(e, 'u82LinksClick');
}

InsertBeforeEnd(u82LinksClick, "<div class='intcaselink' onmouseout='SuppressBubble(event)' onclick='u82Clickueaa28a4173fa47ed8871d71cee268f15(event)'>Thông Tin Khách Hàng</div>");
function u82Clickueaa28a4173fa47ed8871d71cee268f15(e)
{

	self.location.href=$axure.globalVariableProvider.getLinkUrl('ttkh.html');

	ToggleLinks(e, 'u82LinksClick');
}

InsertBeforeEnd(u82LinksClick, "<div class='intcaselink' onmouseout='SuppressBubble(event)' onclick='u82Clicku342a7508bc7946c99ac60189db38cbb1(event)'>Thông Tin Sản Phẩm</div>");
function u82Clicku342a7508bc7946c99ac60189db38cbb1(e)
{

	self.location.href=$axure.globalVariableProvider.getLinkUrl('sp.html');

	ToggleLinks(e, 'u82LinksClick');
}

InsertBeforeEnd(u82LinksClick, "<div class='intcaselink' onmouseout='SuppressBubble(event)' onclick='u82Clicku21e945f0d79a4cd3aaa0dd88ea1eab61(event)'>Thông Tin Nhân Viên</div>");
function u82Clicku21e945f0d79a4cd3aaa0dd88ea1eab61(e)
{

	self.location.href=$axure.globalVariableProvider.getLinkUrl('nv.html');

	ToggleLinks(e, 'u82LinksClick');
}

InsertBeforeEnd(u82LinksClick, "<div class='intcaselink' onmouseout='SuppressBubble(event)' onclick='u82Clickucb50cf6d204f4d67911a0a6378d8c101(event)'>Theo Dõi Nhập Hàng</div>");
function u82Clickucb50cf6d204f4d67911a0a6378d8c101(e)
{

	self.location.href=$axure.globalVariableProvider.getLinkUrl('theo_doi_NH.html');

	ToggleLinks(e, 'u82LinksClick');
}

InsertBeforeEnd(u82LinksClick, "<div class='intcaselink' onmouseout='SuppressBubble(event)' onclick='u82Clicku22c3c428dfef4dd791a842cd5c96f589(event)'>Theo Dõi Bán Hàng</div>");
function u82Clicku22c3c428dfef4dd791a842cd5c96f589(e)
{

	self.location.href=$axure.globalVariableProvider.getLinkUrl('theo_doi_BH.html');

	ToggleLinks(e, 'u82LinksClick');
}

InsertBeforeEnd(u82LinksClick, "<div class='intcaselink' onmouseout='SuppressBubble(event)' onclick='u82Clicku296c33dd5c8c47a59036b71301d33a26(event)'>Theo Dõi Đặt Hàng</div>");
function u82Clicku296c33dd5c8c47a59036b71301d33a26(e)
{

	self.location.href=$axure.globalVariableProvider.getLinkUrl('theo_doi_DH.html');

	ToggleLinks(e, 'u82LinksClick');
}
gv_vAlignTable['u5'] = 'top';gv_vAlignTable['u12'] = 'top';
u9.style.cursor = 'pointer';
$axure.eventManager.click('u9', function(e) {

if (((GetCheckState('u1')) == (false)) && ((GetCheckState('u3')) == (false))) {

	SetPanelVisibility('u72','','none',500);

}
else
if ((GetWidgetText('u27')) == ('')) {

SetWidgetRichText('u28', '<p style="text-align:center;"><span style="font-family:Arial;font-size:13px;font-weight:normal;font-style:normal;text-decoration:none;color:#333333;">1</span></p>');

SetGlobalVariableValue('STT', GetWidgetText('u27'));

SetWidgetRichText('u30', '<p style="text-align:center;"><span style="font-family:Arial;font-size:13px;font-weight:normal;font-style:normal;text-decoration:none;color:#333333;">BH001</span></p>');

SetWidgetRichText('u32', '<p style="text-align:center;"><span style="font-family:Arial;font-size:13px;font-weight:normal;font-style:normal;text-decoration:none;color:#333333;">CTBH001</span></p>');

	var obj1 = document.getElementById("u65");
    obj1.disabled = false;

	var obj1 = document.getElementById("u87");
    obj1.disabled = false;

}
else
if ((GetWidgetText('u27')) != ('')) {

SetWidgetRichText('u44', '<p style="text-align:center;"><span style="font-family:Arial;font-size:13px;font-weight:normal;font-style:normal;text-decoration:none;color:#333333;">2</span></p>');

SetWidgetRichText('u46', '<p style="text-align:center;"><span style="font-family:Arial;font-size:13px;font-weight:normal;font-style:normal;text-decoration:none;color:#333333;">BH001</span></p>');

SetWidgetRichText('u48', '<p style="text-align:center;"><span style="font-family:Arial;font-size:13px;font-weight:normal;font-style:normal;text-decoration:none;color:#333333;">CTBH002</span></p>');

	var obj1 = document.getElementById("u88");
    obj1.disabled = false;

	var obj1 = document.getElementById("u89");
    obj1.disabled = false;

}
});
gv_vAlignTable['u42'] = 'top';
u63.style.cursor = 'pointer';
$axure.eventManager.click('u63', function(e) {

if ((GetWidgetText('u27')) == ('')) {

}
else
if ((GetWidgetText('u27')) != ('')) {

	SetPanelVisibility('u68','','none',500);

}
});
gv_vAlignTable['u18'] = 'top';gv_vAlignTable['u48'] = 'top';
u88.style.cursor = 'pointer';
$axure.eventManager.click('u88', function(e) {

if ((GetSelectedOption('u88')) == ('SP01')) {

SetWidgetRichText('u52', '<p style="text-align:center;"><span style="font-family:Arial;font-size:13px;font-weight:normal;font-style:normal;text-decoration:none;color:#333333;">Liquid Chlorophyll 2</span></p>');

SetWidgetRichText('u54', '<p style="text-align:center;"><span style="font-family:Arial;font-size:13px;font-weight:normal;font-style:normal;text-decoration:none;color:#333333;">50000</span></p>');

}
else
if ((GetSelectedOption('u88')) == ('SP02')) {

SetWidgetRichText('u52', '<p style="text-align:center;"><span style="font-family:Arial;font-size:13px;font-weight:normal;font-style:normal;text-decoration:none;color:#333333;">Liquid Chlorophyll 32</span></p>');

SetWidgetRichText('u54', '<p style="text-align:center;"><span style="font-family:Arial;font-size:13px;font-weight:normal;font-style:normal;text-decoration:none;color:#333333;">125000</span></p>');

}
});

$axure.eventManager.blur('u6', function(e) {

if (true) {

}
});
gv_vAlignTable['u70'] = 'center';gv_vAlignTable['u14'] = 'top';gv_vAlignTable['u44'] = 'top';gv_vAlignTable['u74'] = 'center';
u98.style.cursor = 'pointer';
$axure.eventManager.click('u98', function(e) {

if (true) {

	SetPanelVisibility('u94','hidden','none',500);

}
});
document.getElementById('u80_img').tabIndex = 0;

u80.style.cursor = 'pointer';
$axure.eventManager.click('u80', u80Click);
InsertAfterBegin(document.body, "<div class='intcases' id='u80LinksClick'></div>")
var u80LinksClick = document.getElementById('u80LinksClick');
function u80Click(e) 
{
windowEvent = e;


	ToggleLinks(e, 'u80LinksClick');
}

InsertBeforeEnd(u80LinksClick, "<div class='intcaselink' onmouseout='SuppressBubble(event)' onclick='u80Clicku78353c52367845b3a57f62c35bb0c5ac(event)'>Bán Hàng</div>");
function u80Clicku78353c52367845b3a57f62c35bb0c5ac(e)
{

    self.location.href="resources/reload.html#" + encodeURI($axure.globalVariableProvider.getLinkUrl($axure.pageData.url));

	ToggleLinks(e, 'u80LinksClick');
}

InsertBeforeEnd(u80LinksClick, "<div class='intcaselink' onmouseout='SuppressBubble(event)' onclick='u80Clicku534a46dc62d24458a87c6323a8bff70a(event)'>Nhập Hàng</div>");
function u80Clicku534a46dc62d24458a87c6323a8bff70a(e)
{

	self.location.href=$axure.globalVariableProvider.getLinkUrl('nhaphang.html');

	ToggleLinks(e, 'u80LinksClick');
}

InsertBeforeEnd(u80LinksClick, "<div class='intcaselink' onmouseout='SuppressBubble(event)' onclick='u80Clicku73e425975d104705a8b73b871b734c2f(event)'>Đặt Hàng</div>");
function u80Clicku73e425975d104705a8b73b871b734c2f(e)
{

	self.location.href=$axure.globalVariableProvider.getLinkUrl('dathang.html');

	ToggleLinks(e, 'u80LinksClick');
}

InsertBeforeEnd(u80LinksClick, "<div class='intcaselink' onmouseout='SuppressBubble(event)' onclick='u80Clicku5dd0fa54715146298f3bad464d11f2c2(event)'>Tra cứu khách hàng</div>");
function u80Clicku5dd0fa54715146298f3bad464d11f2c2(e)
{

	self.location.href=$axure.globalVariableProvider.getLinkUrl('tracuukh.html');

	ToggleLinks(e, 'u80LinksClick');
}
